<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>js数据类型</title>
</head>
<body>
    <script>
        var a = 1;
        var b = 1.1;
        var c = "hello";
        var d = true;
        var e = null;
        var f = undefined;
        var g = [];
        var h = {};

        console.log(typeof(a));
        console.log(typeof b);
        console.log(typeof c);
        console.log(typeof d);
        console.log(typeof e);
        console.log(typeof f);
        console.log(typeof g);
        console.log(typeof h);

    </script>
</body>
</html>